package com.ruoyi.web.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * K8s用户对象 kubernetes_user
 * 
 * @author xuchengchao
 * @date 2022-04-17
 */
public class KubernetesUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 别名 */
    @Excel(name = "别名")
    private String nickName;

    /** API地址 */
    @Excel(name = "API地址")
    private String serverUrl;

    /** 私钥 */
    private String privateKey;

    /** 公钥 */
    private String publicKey;

    /** 证书 */
    private String crtKey;

    /** 组名 */
    @Excel(name = "组名")
    private String groupName;

    /** 有效日期 */
    @Excel(name = "有效日期")
    private Long expirationDays;

    /** $table.subTable.functionName信息 */
    private List<KubernetesUserRoleBinding> kubernetesUserRoleBindingList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setServerUrl(String serverUrl) 
    {
        this.serverUrl = serverUrl;
    }

    public String getServerUrl() 
    {
        return serverUrl;
    }
    public void setPrivateKey(String privateKey) 
    {
        this.privateKey = privateKey;
    }

    public String getPrivateKey() 
    {
        return privateKey;
    }
    public void setPublicKey(String publicKey) 
    {
        this.publicKey = publicKey;
    }

    public String getPublicKey() 
    {
        return publicKey;
    }
    public void setCrtKey(String crtKey) 
    {
        this.crtKey = crtKey;
    }

    public String getCrtKey() 
    {
        return crtKey;
    }
    public void setGroupName(String groupName) 
    {
        this.groupName = groupName;
    }

    public String getGroupName() 
    {
        return groupName;
    }
    public void setExpirationDays(Long expirationDays) 
    {
        this.expirationDays = expirationDays;
    }

    public Long getExpirationDays() 
    {
        return expirationDays;
    }

    public List<KubernetesUserRoleBinding> getKubernetesUserRoleBindingList()
    {
        return kubernetesUserRoleBindingList;
    }

    public void setKubernetesUserRoleBindingList(List<KubernetesUserRoleBinding> kubernetesUserRoleBindingList)
    {
        this.kubernetesUserRoleBindingList = kubernetesUserRoleBindingList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("nickName", getNickName())
            .append("serverUrl", getServerUrl())
            .append("privateKey", getPrivateKey())
            .append("publicKey", getPublicKey())
            .append("crtKey", getCrtKey())
            .append("groupName", getGroupName())
            .append("createTime", getCreateTime())
            .append("expirationDays", getExpirationDays())
            .append("kubernetesUserRoleBindingList", getKubernetesUserRoleBindingList())
            .toString();
    }
}
